package com.threeti.mecool.core.domain.model.project;

import com.threeti.mecool.shared.util.AbstractFlatRawTreeNode;

public class ProjectEmployeeRawTreeNode extends AbstractFlatRawTreeNode<Long> {
  private Long id;
  private Long parentId;
  private Long empId;
  private String empName;
  private String titleWithinTheProject;
  private ProjectEmployeeRankType rankType;

  public ProjectEmployeeRawTreeNode(Long id, Long parentId, Long empId, String empName, String titleWithinTheProject) {
    super();
    this.id = id;
    this.parentId = parentId;
    this.empId = empId;
    this.empName = empName;
    this.titleWithinTheProject = titleWithinTheProject;
    this.rankType = ProjectEmployeeRankType.LEVEL_EXECUTION;//员工岗位类型默认为执行层
  }

  public ProjectEmployeeRawTreeNode(Long id, Long parentId, Long empId, String empName, String titleWithinTheProject,ProjectEmployeeRankType rankType) {
    super();
    this.id = id;
    this.parentId = parentId;
    this.empId = empId;
    this.empName = empName;
    this.titleWithinTheProject = titleWithinTheProject;
    this.rankType = rankType;
  }

  @Override
  public Long getId() {
    return id;
  }

  @Override
  public Long getParentId() {
    return parentId;
  }

  @Override
  public String getName() {
    return empName;
  }

  public Long getEmpId() {
    return empId;
  }

  @Override
  public String toString() {
    return "ProjectEmployeeRawTreeNode [id=" + id + ", parentId=" + parentId + ", empId=" + empId + ", empName="
        + empName + ", titleWithinTheProject=" + titleWithinTheProject + ", rankType=" + rankType + "]";
  }

  public void setEmpId(Long empId) {
    this.empId = empId;
  }

  public String getEmpName() {
    return empName;
  }

  public void setEmpName(String empName) {
    this.empName = empName;
  }

  public String getTitleWithinTheProject() {
    return titleWithinTheProject;
  }

  public void setTitleWithinTheProject(String titleWithinTheProject) {
    this.titleWithinTheProject = titleWithinTheProject;
  }

  public void setId(Long id) {
    this.id = id;
  }

  public void setParentId(Long parentId) {
    this.parentId = parentId;
  }

  public ProjectEmployeeRankType getRankType() {
    return rankType;
  }

  public void setRankType(ProjectEmployeeRankType rankType) {
    this.rankType = rankType;
  }

  public ProjectEmployeeRawTreeNode() {
    super();
  }

}
